package com.xxpt.common.constant;

import com.xxpt.common.utils.amqp.QueueCode;

public enum Queues implements QueueCode {
    TES01_QUEUE(RabbitMqConstant.QUEUE_TEST01, RabbitMqConstant.DLQ_TEST01,
            "信息平台测试队列"),
    TRAIN_RECORD_CANCEL(RabbitMqConstant.QUEUE_TRAIN_RECORD, RabbitMqConstant.DLQ_TRAIN_RECORD,
            "信息平台活动撤回队列"),
    ;

    private String name;
    private String dlk; // 死信routingKey
    private String description;

    Queues(String name, String dlk, String description) {
        this.name = name;
        this.dlk = dlk;
        this.description = description;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getRoutingKey() {
        return dlk;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public Integer getDelayTime() {
        return null;
    }
}
